package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_messageread;
import com.balakitbbs.dao.Bala_messagereadDaoIF;
   /**
    * bala_messageread Service类
    */ 
@Service
public class Bala_messagereadService{
@Autowired
private Bala_messagereadDaoIF dao;
	public void addBala_messageread(Bala_messageread bala_messageread){
		dao.addBala_messageread(bala_messageread);
	}

	public void delBala_messageread(String id){
		dao.delBala_messageread(id);
	}

	public void delBala_messagereadTrue(String id){
		dao.delBala_messagereadTrue(id);
	}

	public void updateBala_messageread(Bala_messageread bala_messageread){
		dao.updateBala_messageread(bala_messageread);
	}

	public Bala_messageread selectBala_messagereadById(String id){
		return dao.selectBala_messagereadByID(id);
	}

	public int selectBala_messagereadCount(){
		return dao.selectBala_messagereadCount();
	}

	public int selectBala_messagereadCountAll(){
		return dao.selectBala_messagereadCountAll();
	}

	public List<Bala_messageread> selectBala_messagereadsByPage(SearchPageUtil spu){
		return dao.selectBala_messagereadsByPage(spu);
	}

	public int selectBala_messagereadsByPOJOCount(Bala_messageread bala_messageread){
		return dao.selectBala_messagereadsByPOJOCount(bala_messageread);
	}

	public List<Bala_messageread> selectBala_messagereadsByPOJO(Bala_messageread bala_messageread){
		return dao.selectBala_messagereadsByPOJO(bala_messageread);
	}

	public List<Bala_messageread> selectBala_messagereadsByPojoPage(SearchPageUtil spu,Bala_messageread bala_messageread){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_messageread);
		return dao.selectBala_messagereadsByPojoPage(map);
	}

}

